package com.qianli.user.ro.social;

import com.qianli.user.enums.ContactFamilyTypeEnum;
import com.qianli.user.enums.ContactFriendTypeEnum;
import com.qianli.user.ro.BaseComplete;
import com.qianli.user.ro.BaseRO;

import java.io.Serializable;

/**
 * name:紧急联系人
 * auth:ting.li@qianli-inc.com
 * date:2017/12/2215:24
 * version: v1.0.0
 **/
public class UserContactEmergencyRO extends BaseRO implements BaseComplete, Serializable{

    private static final long serialVersionUID = -6901630921130615243L;

    /**
     *直系亲属类型
     * @see ContactFamilyTypeEnum
     */
    private Integer familyType;
    /**
     *直系联系人
     */
    private String familyName;
    /**
     *直系联系人手机
     */
    private String familyMobile;
    /**
     *家人在通信录的名字
     */
    private String familyContactName;
    /**
     *朋友类型
     * @see ContactFriendTypeEnum
     */
    private Integer friendType;
    /**
     *同事、朋友联系人
     */
    private String friendName;
    /**
     *同事、朋友联系号码
     */
    private String friendMobile;
    /**
     *朋友在通信录的名字
     */
    private String friendContactName;

    public Integer getFamilyType() {
        return familyType;
    }

    public void setFamilyType(Integer familyType) {
        this.familyType = familyType;
    }

    public String getFamilyName() {
        return familyName;
    }

    public void setFamilyName(String familyName) {
        this.familyName = familyName;
    }

    public String getFamilyMobile() {
        return familyMobile;
    }

    public void setFamilyMobile(String familyMobile) {
        this.familyMobile = familyMobile;
    }

    public String getFamilyContactName() {
        return familyContactName;
    }

    public void setFamilyContactName(String familyContactName) {
        this.familyContactName = familyContactName;
    }

    public Integer getFriendType() {
        return friendType;
    }

    public void setFriendType(Integer friendType) {
        this.friendType = friendType;
    }

    public String getFriendName() {
        return friendName;
    }

    public void setFriendName(String friendName) {
        this.friendName = friendName;
    }

    public String getFriendMobile() {
        return friendMobile;
    }

    public void setFriendMobile(String friendMobile) {
        this.friendMobile = friendMobile;
    }

    public String getFriendContactName() {
        return friendContactName;
    }

    public void setFriendContactName(String friendContactName) {
        this.friendContactName = friendContactName;
    }

    @Override
    public Boolean isComplete() {
        return null != getFamilyType() && null != getFriendType();
    }
}
